package com.jfcloud.mall.order.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableLogic;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhaojunfu
 * @since 2020-03-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="JfcloudOrder对象", description="")
public class JfcloudOrder extends Model<JfcloudOrder> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "订单号")
    private String orderNo;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "用户姓名")
    private String userName;

    @ApiModelProperty(value = "商品数量")
    private Integer productNum;

    @ApiModelProperty(value = "订单金额")
    private BigDecimal orderAmout;

    @ApiModelProperty(value = "订单状态  0已提交 1已确认  2已发货 3已收货 4确认期  5已完成  11用户取消   21申请退货  22退货已审核 23退货完成")
    private Integer status;

    @ApiModelProperty(value = "支付状态  0未支付 1已支付")
    private Integer payStatus;

    @ApiModelProperty(value = "支付方式 1:线上支付  2:线下支付")
    private Integer payWay;

    @ApiModelProperty(value = "实际支付金额")
    private BigDecimal payAmout;

    @ApiModelProperty(value = "支付时间")
    private LocalDateTime payTime;

    @ApiModelProperty(value = "配送方式  1快递  2自提")
    private Integer sendWay;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0正常 1已删除")
    @TableLogic
    private Integer isDelete;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
